<h1>LimitScript</h1>

<p>The LimitScript action is used to define the execution environment of the Flash 
Player, limiting the resources available when executing actions. LimitScript 
can be used to limit the maximum recursion depth and limit the time a sequence 
of actions can execute for. This provides a rudimentary mechanism for people viewing a movie to regain control of the Flash Player should a script fail.</p>

<table>

<tr>
<th nowrap>Field Name</th>
<th>Type</th>
<th>Description</th>
</tr>

<tr>
<td nowrap valign="top"><a name="ActionType">Type</a></td>
<td nowrap valign="top">unsigned int</td>
<td nowrap align="right">8</td>
<td>Identifies the action when it is encoded.</td>
</tr>

<tr>
<td nowrap valign="top"><a name="ActionLength">Length</a></td>
<td nowrap valign="top">unsigned int</td>
<td nowrap align="right">16</td>
<td>The number of bytes in the rest of the encoded action. The total number of
bytes in the encoded action is Length+3.</td>
</tr>

<tr>
<td nowrap valign="top">depth</td>
<td nowrap valign="top">unsigned int</td>
<td nowrap align="right">16</td>
<td>The maximum depth, in the range 1..65535, that a sequence of actions can recurse to.</td>
</tr>

<tr>
<td nowrap valign="top">timeout</td>
<td nowrap valign="top">unsigned int</td>
<td nowrap align="right">16</td>
<td>The maximum time, in seconds, that a sequence of actions will execute before the Flash Player present a dialog box asking whether the script should be terminated.</td>
</tr>

</table>

<h2>History</h2>

<p>The LimitScript action represents the ScriptLimits tag in the Macromedia Flash (SWF) File Format Specification. It was introduced in Flash 7.</p>
